/*
 * Date: 2018年01月02日 09:32:33
 * LastEditors  : lvyou
 * LastEditTime : 2020年01月14日 11:50:36
 * FilePath: \youlinweb-master\src\api\index.js
 * copyright(c) 2019-2025 版权为浙江双城网络科技集团有限公司所有，违者必究。
 */
import axios from 'axios'
import router from 'src/router'
import Vue from 'vue'
import { Indicator } from "mint-ui"
import qs from 'qs'

// axios 配置
axios.defaults.timeout = 8000;
//测试环境
axios.defaults.baseURL = 'https://youlin-test-app.wonderlandnet.cn/daoismmanager/';
// axios.defaults.baseURL = 'http://192.168.10.224:8086';
// axios.defaults.baseURL = 'http://192.168.31.23:8088';
// axios.defaults.baseURL = 'http://127.0.0.1:8088';
// axios.defaults.baseURL = 'http://47.111.173.172:8080/ylsj';
// axios.defaults.baseURL = 'http://172.16.40.73:8081';
// axios.defaults.baseURL = 'http://172.16.40.158';
//  axios.defaults.baseURL = 'https://youlin.wonderlandnet.cn:1000/ylsj/'
//  axios.defaults.baseURL = 'https://youlin-slb.wonderlandnet.cn:1000/ylsj/'
axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';

localStorage.setItem("token","771a9304-d1ab-4ae8-9595-3b7bb21bb4d9");

export function fetchget(url, params) {
  if (!params.params) {
    params = {
      params: {}
    }
  }
  const token = localStorage.getItem("token")
  if (token) {
    params.params.token = token
  }
  return new Promise((resolve, reject) => {
    //var qs = require('qs');

    axios.get(url, params)
      .then(response => {
        if (response.data.code == "500") {
          Indicator.close();
          router.replace({
            name:'404'
          });
        }
        resolve(response.data);
      }, err => {
        reject(err);
      })
      .catch((error) => {
        reject(error)
        alert("请求失败")
      })
  })
}
export function fetchPost(url, params) {
  const token = localStorage.getItem("token")
  return new Promise((resolve, reject) => {
    axios.post(url, params, {
      headers: {
        'Content-Type': 'application/json'
        // 'Content-Type': 'application/x-www-form-urlencoded'
      }
    })
      .then(response => {
        if (response.data.code == "500") {
          Indicator.close();
          router.replace({
            name:'404'
          });
        }
        resolve(response.data);
      }, err => {
        reject(err);
      })
      .catch((error) => {
        reject(error)
      })
  })
}
export function qsPost(url, params) {
  const token = localStorage.getItem("token")
  return new Promise((resolve, reject) => {
    axios.post(url,qs.stringify(params), {
      headers: {
        // 'Content-Type': 'application/json'
        'Content-Type': 'application/x-www-form-urlencoded'
      }
    })
      .then(response => {
        if (response.data.code == "500") {
          Indicator.close();
          router.replace({
            name:'404'
          });
        }
        resolve(response.data);
      }, err => {
        reject(err);
      })
      .catch((error) => {
        reject(error)
      })
  })
}
export function post(url, params) {
  const token = localStorage.getItem("token")
  return new Promise((resolve, reject) => {
    const token = localStorage.getItem("token")
    axios({
      url: url + '?token=' + token,
      params,
      method: 'post',
      headers: {
        'Content-Type': 'application/x-www-form-urlencoded',
      },
      timeout: 30000
    })
      .then(response => {
        if (response.data.code == "500") {
          Indicator.close();
          router.replace({
            name:'404'
          });
        }
        resolve(response.data);
      }, err => {
        reject(err);
      })
      .catch((error) => {
        reject(error)
      })
  })
}

export default {


  /**
   * 获取userId
   */
  QuerygetUserId(params) {
    return fetchget('/api/loginuser', {
      params: params
    })
  },


  /*获取上传图片token*/
  Queryuploadtoken(params) {
    return fetchget('/api/getToken', {
      params: params
    })
  },

  /**
   * 话题-最新和最热
   */
  Querytopic(params) {
    return fetchget('/api/topiclist', {
      params: params
    })
  },

  /**
   * 话题详情
   */
  Querytopicdetail(params) {
    return fetchget('/api/topicdetail', {
      params: params
    })
  },

  /**
   * 话题详情里的按时间--按热度
   */
  QuerytopicdetailTimeOrHot(params) {
    return fetchget('/api/discusslist', {
      params: params
    })
  },

  /**
   * 话题 点赞接口
   */
  Querytopicsavegood(params) {
    return fetchget('/api/savegood', {
      params: params
    })
  },


  /**
   * 话题 取消点赞接口
   */
  QuerytopicCanaleGood(params) {
    return fetchget('/api/cancelgood', {
      params: params
    })
  },

  /**
   * 话题 讨论详情
   */
  QuerytopicCommentDetail(params) {
    return fetchget('/api/querycommentlist', {
      params: params
    })
  },


  /**
   * 话题 添加讨论或评论
   */
  QuerytopicAddComment(params) {
    return fetchPost('/api/savecomment?picUrls=' + params.picUrls + '&token=' + params.token, params)
  },


  /**
   * 话题 查询草稿
   */
  Querytopicquerydraft(params) {
    return fetchget('/api/querydraft', {
      params: params
    })
  },

  /**
   * 话题 查询草稿
   */
  Querytopicsavedraft(params) {
    return fetchget('/api/savedraft', {
      params: params
    })
  },

  /**
   * 话题 活动查询
   */
  Querytopiclookactive(params) {
    return fetchget('/api/queryactivity', {
      params: params
    })
  },

  /**
   * 全量查询结果
   */
  QueryAllContext(params) {
    return fetchget('/api/allsearchInMix', {
      params: params
    })
  },

  /**
   * 新增历史搜索
   */
  Savehistroysearch(params) {
    return fetchget('/api/savehistroysearch', {
      params: params
    })
  },

  /**
   * 获取查询历史搜索
   */
  QuerySearchHistory(params) {
    return fetchget('/api/querysearch', {
      params: params
    })
  },

  /**
   * 删除历史搜索
   */
  DeleteHistorySearch(params) {
    return fetchget('/api/delhistroysearch', {
      params: params
    })
  },

  /**
   * 新增投票
   */
  Savevoteresult(params) {
    return qsPost('/api/savevoteresult?token=' + localStorage.getItem("token"), params,true)
  },

  /**
   *我的消息
   */
  getMyMessage(params) {
    return fetchget('/api/mymsg', {
      params: params
    })
  },

  /**
   * 话题 删除评论
   */
  Querytopicdeletecomments(params) {
    return fetchget('/api/delcomment', {
      params: params
    })
  },

  /**
   *活动报名
   */
  Querytopicjoinactive(params) {
    // return fetchget('/api/saveactivists', {params: params})
    return qsPost('/api/saveactivists?token=' + localStorage.getItem("token"), params,true)
  },

  /**
   * 查询报名剩余人数
   */
  QueryrestQuota(params) {
    return fetchget('/api/restQuota', {
      params: params
    })
  },

  /**
   * 话题--搜索
   */
  Querytopicsearch(params) {
    return fetchget('/api/querysearchlist', {
      params: params
    })
  },

  /**
   * 首页---焦点图
   */
  Queryindexfocuspic(params) {
    return fetchget('/api/focuspic', {
      params: params
    })
  },

  /**
   * 首页
   */

  Queryindex(params) {

    return fetchget('/api/queryindex', {
      params: params
    })
  },

  /**
   * 说说点赞
   */
  Querysaythumbup(params) {
    return fetchget('/api/says/sayslike', {
      params: params
    })
  },
  /**
   * 评论点赞
   */
  Querycirlethumbup(params) {
    return fetchget('/api/circlediscusslike/add', {
      params: params
    })
  },

  /**
   * 评论的评论列表
   */
  Querycirclediscusscommentlist(params) {
    return fetchget('/api/circlediscusscomment/list', {
      params: params
    })
  },

  /**
   * 评论的评论列表
   */
  Querycirclediscusscommentadd(params) {
    return fetchget('/api/circlediscusscomment/add', {
      params: params
    })
  },



  /**
   * 置换点赞
   */
  Queryreplacethumbup(params) {
    return fetchget('/api/replaced/likereplaced', {
      params: params
    })
  },

  /**
   * 取消置换点赞
   */
  Querycanclereplacethumbup(params) {
    return fetchget('/api/replaced/cancellikereplaced', {
      params: params
    })
  },

  /**
   * 说说  列表
   */
  querySaysList(params) {
    return fetchget('/api/says/querySaysList', {
      params: params
    })
  },
  /**
   * 说说详情
   */
  Querysay(params) {
    return fetchget('/api/says/sayslist', {
      params: params
    })
  },

  /**
   * 闲置--列表
   */
  Queryreplace(params) {
    return fetchget('/api/replaced/replacedlist', {
      params: params
    })
  },

  /**
   * shuoshuo-  讨论详情下面的讨论
   */
  Querysaycomments(params) {
    return fetchget('/api/says/sayscomment', {
      params: params
    })
  },

  Querysaycanclethumbup(params) {
    return fetchget('/api/says/cancelsayslike', {
      params: params
    })
  },

  /**
   * 说说评论点赞
   * @param params
   * @returns {*}
   * @constructor
   */
  Querysaycommentthumbup(params) {
    return fetchget('/api/says/commentlike', {
      params: params
    })
  },
  /**
   * 评论点赞
   * @param params
   * @returns {*}
   * @constructor
   */
  Querycirclediscussthumbup(params) {
    return fetchget('/api/circlediscuss/add', {
      params: params
    })
  },
  /**
   * 评论点赞
   * @param params
   * @returns {*}
   * @constructor
   */
  Querycirclediscusscommentthumbup(params) {
    return fetchget('/api/circlediscusscommentlike/add', {
      params: params
    })
  },

  /**
   * 取消说说评论点赞
   */
  Querycanclesaycommentthumbup(params) {
    return fetchget('/api/says/cancelcommentlike', {
      params: params
    })
  },
  /**
   * 取消评论点赞
   */
  Querycanclescirclediscussthumbup(params) {
    return fetchget('/api/circlediscuss/cancel', {
      params: params
    })
  },

  /**
   * 取消评论点赞
   */
  Querycanclecirclediscusscommentlikethumbup(params) {
    return fetchget('/api/circlediscusscommentlike/cancel', {
      params: params
    })
  },

  /**
   * 查询说说草稿
   */
  Querylooksaycaogao(params) {
    return fetchget('/api/says/commentdraft', {
      params: params
    })
  },

  /**
   * 保存评论草稿
   */
  Querysavecommentcaogao(params) {
    return fetchget('/api/says/sayscomment', {
      params: params
    })
  },


  /**
   * 闲置详情--上面的闲置
   */
  Queryrepdetailtop(params) {
    return fetchget('/api/replaced/getreplacedbyid', {
      params: params
    })
  },

  /**
   * 闲置详情--下面的评论列表
   */
  Queryrepdetailbottomcomments(params) {
    return fetchget('api/replaced/replacedpalylist', {
      params: params
    })
  },

  /**
   * 说说--保存，发布评论草稿
   */
  Queryshuoshuocommentdraf(params) {
    return fetchget('/api/says/savesayscomment', {
      params: params
    })
  },
  /**
   * 说说--保存，发布评论草稿
   */
  Querycirclediscussadd(params) {
    return fetchget('/api/circlediscuss/add', {
      params: params
    })
  },

  /**
   * 闲置评论点赞
   */
  Queryreplacecommentthumbup(params) {
    return fetchget('/api/replaced/commentlike', {
      params: params
    })
  },

  /**
   * 闲置评论取消点赞
   */
  Queryreplacecommentcanclethumbup(params) {
    return fetchget('/api/replaced/cancelcommentlike', {
      params: params
    })
  },

  /**
   * 发布说说
   */
  Querybublishbigsay(params) {
    return fetchPost('/api/says/saveorupdatesays?token=' + params.token, params)
  },

  /**
   * 查看说说草稿
   */
  Querylookbigsay(params) {
    return fetchget('/api/says/saysdraft', {
      params: params
    })
  },

  /**
   * 删除说说
   */
  Querydeletesays(params) {
    return fetchget('/api/says/deletesays', {
      params: params
    })
  },

  /**
   *删除说说的评论
   */
  Querydeletesayscomments(params) {
    return fetchget('/api/says/deletecomment', {
      params: params
    })
  },

  /**
   * 我发布的
   */
  QueryMypublish(params) {
    return fetchget('/api/interaction/mypublish', {
      params: params
    })
  },
  /**
   *闲置---发布评论
   */
  Queryreplacepublishcomments(params) {
    return fetchget('/api/replaced/replacedreply', {
      params: params
    })
  },

  /**
   *闲置---查询评论草稿
   */
  Queryreplacecommentsdraft(params) {
    return fetchget('/api/replaced/replacedreplydraft', {
      params: params
    })
  },

  /**
   *闲置---删除闲置
   */
  Querydeletereplace(params) {
    return fetchget('/api/replaced/deletereplaced', {
      params: params
    })
  },

  /**
   *闲置---删除闲置的评论
   */
  Querydeletereplacecomments(params) {
    return fetchget('/api/replaced/deletereplacedreply', {
      params: params
    })
  },

  /**
   * 将闲置售出
   * @param {[type]} params [description]
   */
  ReplaceSold(params) {
    return fetchget('/api/interaction/replacedsold', {
      params: params
    })
  },

  /**
   *闲置---发布闲置
   */
  Querypublishreplace(params) {
    return fetchget('/api/replaced/saveorupdateplaced/', {
      params: params
    })
  },

  /**
   *闲置---闲置草稿查询
   */
  Querylookreplacedraft(params) {
    return fetchget('/api/replaced/replaceddraft', {
      params: params
    })
  },

  /**
   * 添加我参与的接口
   */
  QueryMyInteraction(params) {
    return fetchget('/api/interaction/myinteraction', {
      params: params
    })
  },

  /**
   * 更改我的消息阅读状态
   */
  Updateread(params) {
    return fetchget('/api/read', {
      params: params
    })
  },


  /**
   * 审核
   */
  Queryshenhe(params) {
    return fetchget('api/says/getsize', {
      params: params
    })
  },

  /**
   * 新增点击
   */
  Queryaddtopicclicknum(params) {
    return fetchget('api/saveclick', {
      params: params
    })
  },

  /***
   *搜索(热搜/历史搜索)
   */
  Querysearch(params) {
    return fetchget('api/querysearch', {
      params: params
    })
  },
  /**
   * 话题全部分类
   * @param {*} params
   */
  Queryalltopicclass(params) {
    return fetchget('api/alltopicclass', {
      params: params
    })
  },
  /**
   * 获取详细留言记录接口
   * @param {*} params
   */
  getChatLogDetailList(params) {
    return fetchget('api/getChatLogDetailList', {
      params: params
    })
  },
  /**
   * 保存留言接口
   * @param {*} params
   */
  saveChatLogDetail(params) {
    return fetchget('api/saveChatLogDetail', {
      params: params
    })
  },
  /**
   * 获取在线时长
   * @param {*} params
   */
  getuseronline(params) {
    return fetchget('api/userOnline', {
      params: params
    })
  },
  // 是否有可用抽奖
  canDraw(params) {
    return fetchget('/api/draw/haveDrawType3', {
      params: params
    })
  },
  // 抽奖
  doDraw(params) {
    return fetchget('/api/draw/draw', {
      params: params
    })
  },
  //获取抽奖信息
  getdraw(params) {
    return fetchget('/api/draw/getdraw', {
      params: params
    })
  },
  //试吃试用列表
  getmetryoutgoods(params) {
    return fetchget('/api/metryoutgoods/list', {
      params: params
    })
  },
  //展示中奖用户
  drawrecord(params) {
    return fetchget('/api/draw/drawrecord', {
      params: params
    })
  },
  //展示用户在该抽奖活动中的记录
  myrecord(params) {
    return fetchget('/api/draw/myrecord', {
      params: params
    })
  },
  //保存收货地址
  saveaddress(params) {
    return fetchPost('/api/draw/saveaddress?token=' + params.token, params)
  },

  //兑换实物，话费
  exchangeRealGoods(params) {
    return fetchget('/api/exchangeRealGoods',  { params: params})
  },
  //抽奖
  golottery(params) {
    return fetchget('/api/draw/draw', {
      params: params
    })
  },
  //查询用户可用抽奖
  haveDraw(params) {
    return fetchget('/api/draw/haveDraw', {
      params: params
    })
  },
  //通用中心_推送配置
  getpushlist(params) {
    return fetchget('/api/pushlist', {
      params: params
    })
  },
  //推送详情
  getpushdetail(params) {
    return fetchget('/api/pushdetail', {
      params: params
    })
  },
  //推荐活动未读消息数
  getnotreadnum(params) {
    return fetchget('/api/notreadnum', {
      params: params
    })
  },
  //阅读推荐活动
  getreadpush(params) {
    return fetchget('/api/readpush', {
      params: params
    })
  },
  //签到
  getsignin(params) {
    return fetchget('/api/draw/signin', {
      params: params
    })
  },
  //发现
  queryDiscovery(params) {
    return fetchget('/api/queryDiscovery', {
      params: params
    })
  },
  //发现详情
  queryDiscoveryInfo(params) {
    return fetchget('/api/circle/info', {
      params: params
    })
  },
  //圈子评论列表
  querycirclediscussInfo(params) {
    return fetchget('/api/circlediscuss/listByCircleId', {
      params: params
    })
  },
  //发现未加入圈子
  queryDiscoveryUNjoin(params) {
    return fetchget('/api/circle/unJoinList', {
      params: params
    })
  },
  //发现已加入圈子
  queryDiscoveryjoin(params) {
    return fetchget('/api/circle/joinList', {
      params: params
    })
  },
  //加入圈子
  querycirclejoin(params) {
    return fetchget('/api/circle/join', {
      params: params
    })
  },
  //加入圈子
  querycirclecancalJoin(params) {
    return fetchget('/api/circle/cancalJoin', {
      params: params
    })
  },
  //点赞圈子评论
  queryDiscoverylikeadd(params) {
    return fetchget('/api/circlediscusslike/add', {
      params: params
    })
  },
  //取消点赞圈子评论
  queryDiscoverylikecancel(params) {
    return fetchget('/api/circlediscusslike/cancel', {
      params: params
    })
  },
  //我参与的圈子的所有讨论列表)
  queryDiscussAll(params) {
    return qsPost('/api/circlediscuss/allList?token=' + localStorage.getItem("token"), params,true)

  },
  //首页更多话题
  getmoreTopic(params) {
    return fetchget('/api/moreTopic', {
      params: params
    })
  },
  //添加收藏
  addCollection(params) {
    return fetchget('/api/collecting', {
      params: params
    })
  },
  //取消收藏
  cancelCollection(params) {
    return fetchget('/api/cancelCollection', {
      params: params
    })
  },
  //收藏内容列表
  getCollectionItemList(params) {
    return fetchget('/api/getCollectionItemList', {
      params: params
    })
  },
  //话题详情猜你喜欢
  getrelatedtopiclist(params) {
    return fetchget('/api/relatedtopiclist', {
      params: params
    })
  },
  //查询帮助列表信息
  getusehelplist(params) {
    return fetchget('/api/usehelp/list', {
      params: params
    })
  },
  //查询帮助列表详细信息
  getusehelpinfo(params) {
    return fetchget('/api/usehelp/info', {
      params: params
    })
  },
  // 查询签到数据
  getCheckData(params) {
    return fetchPost('/api/signIn?token=' + localStorage.getItem("token"), params)
  },
  // 查询其他月份签到数据
  getMonthData(params) {
    return post('/api/queryMonthData', params)
  },
  // 查询签到规则
  querySignRule(params) {
    return fetchget('/api/querySignRule', {
      params: params
    })
  },
  //查询兑换记录
  queryExchangeRecord(params) {
    return fetchget('/api/queryExchangeRecord', {
      params: params
    })
  },
  //查询积分商城
  getCoinShopIndex(params) {
    return fetchget('/api/getCoinShopIndex', {
      params: params
    })
  },
  //商品兑换接口
  exchangeGoods(params) {
    return fetchget('/api/exchangeGoods', {
      params: params
    })
  },
  //商品详情
  getGoodsDetail(params) {
    return fetchget('/api/getGoodsDetail', {
      params: params
    })
  },
  //查询积分变动明细
  queryCoinChangeRecordList(params) {
    return fetchget('/api/queryCoinChangeRecordList', {
      params: params
    })
  },
  //点赞标为已读
  likeisread(params) {
    return fetchget('/api/likeisread', {
      params: params
    })
  },
  //评论标为已读
  commentisread(params) {
    return fetchget('/api/commentisread', {
      params: params
    })
  },
  //试用商品列表
  getTryoutGoodsList(params) {
    return fetchget('/api/tryout/getTryoutGoodsList', {
      params: params
    })
  },
  //试用商品详情
  getTryoutGoodsDetail(params) {
    return fetchget('/api/tryout/getTryoutGoodsDetail', {
      params: params
    })
  },
  //申请试用
  meusertryoutgoods(params) {
    return fetchget('/api/meusertryoutgoods/apply', {
      params: params
    })
  },
  //申请试用
  applyForTryout(params) {
    return fetchget('/api/tryout/applyForTryout', {
      params: params
    })
  },
  //试用报告列表
  getTryoutReportList(params) {
    return fetchget('/api/tryout/getTryoutReportList', {
      params: params
    })
  },
  // 发表试用报告
  saveTryoutReport(params) {
    return fetchget('/api/tryout/saveTryoutReport', {
      params: params
    })
  },
  // 我的试用报告
  myTryoutReport(params) {
    return fetchget('/api/tryout/myTryoutReport', {
      params: params
    })
  },
  // 我的试用记录
  myTryout(params) {
    return fetchget('/api/tryout/myTryout', {
      params: params
    })
  },
  // 系统消息全部标为已读
  sysMsgIsRead(params) {
    return fetchget('/api/sysMsgIsRead', {
      params: params
    })
  },
  // 热点新闻
  getTryoutHot(params) {
    return fetchget('/api/tryout/hot', {
      params: params
    })
  },
  // 兑换规则
  getExchangeRule(params) {
    return fetchget('/api/getExchangeRule', {
      params: params
    })
  },
  // 查询未读数
  unreadCount(params) {
    return fetchget('/api/unreadCount', { params: params })
  },
  // 查询用户收货地址
  getExpressAddress(params) {
    return fetchget('/api/expressAddress/getExpressAddress', {params: params})
  },
  // 编辑用户收货地址
  updateExpressAddress(params) {
    return fetchget('/api/expressAddress/update', {params: params})
  },
  // 保存用户收货地址
  saveExpressAddress(params) {
    return fetchget('/api/expressAddress/save', {params: params})
  },
  //试用中选名单
  getSelectedUser(params) {
    return fetchget('/api/tryout/getSelectedUser', {params: params})
  },
  //保存用户轨迹
  footprint(params) {
    return fetchget('/api/footprint', {params: params})
  },
  //跳转到新商业项目拼团详情页面
  goTogether(params) {
    return fetchget('/api/shangye/goTogether', {params: params})
  },
  //查询说说版规
  saysruledetail(params) {
    return fetchget('/api/says/saysruledetail', {params: params})
  },
  replacedruledetail(params) {
    return fetchget('/api/replaced/replacedruledetail', {params: params})
  },
  //点击问卷调查按钮
  getPaper(params) {
    return fetchget('/api/paper/getPaper', {params: params})
  },
  //点击开始按钮
  startPaper(params) {
    return fetchget('/api/paper/start', {params: params})
  },
  //点击上一题/下一题按钮
  lastornext(params) {
    return fetchget('/api/paper/lastornext', {params: params})
  },
  //查询商品详情地址
  goGoodsDetail(params) {
    return fetchget('/api/shangye/goGoodsDetail', {params: params})
  },
  //补签接口
  repairSignIn(params) {
    return fetchget('/api/repairSignIn', {params: params})
  },
  //挂件
  exchangePendant(params) {
    return fetchget('/api/exchangePendant', {params: params})
  },
  //保存投稿文章
  saveArticles(params) {
   return fetchPost('/api/articles/saveArticles?token=' + params.token , params)
  },
  //查询投稿草稿
  queryArticlesDraft(params) {
    return fetchget('/api/articles/queryArticlesDraft', {params: params})
  },
  //查询投稿文章列表
  myArticlesList(params) {
    return fetchget('/api/articles/myArticlesList', {params: params})
  },
  //查询投稿文章
  queryArticles(params) {
    return fetchget('/api/articles/queryArticles', {params: params})
  },
  //查询投稿配置
  queryArticlesConfig(params) {
    return fetchget('/api/articles/queryArticlesConfig', {params: params})
  },
  //查询投稿入口
  queryArticlesEnter(params) {
    return fetchget('/api/articles/queryArticlesEnter', {params: params})
  },
  //年终统计
  annuallyCount(params) {
    return fetchget('/api/annuallyCount/getAnnuallyCount', {params: params})
  },
  //发绿币
  addCoin(params) {
    return fetchget('/api/annuallyCount/addCoin', {params: params})
  },

}
